package com.itheima.service.impl;

import com.itheima.mapper.Usermapper;
import com.itheima.pojo.Dept;
import com.itheima.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DeptServiceimpl implements DeptService {
    @Autowired
    private Usermapper deptMapper;
    @Override
    public List<Dept> queryDeptList() {
        return  deptMapper.find();

    }
}
